package com.dxl.base.util;


import java.io.IOException;
/**
 * <b>
 * </b><br><br><i>Description</i> :
 * <br> Author : dxl
 * <br> Date : 2019/10/3 18:47
 */
public class ExeOpenFile {
    public static void openFile(String exePath,String filePath) throws IOException {
        if(exePath != null || "".equals(exePath)){
            Runtime.getRuntime().exec(exePath+" "+filePath);
        }else {
            Runtime.getRuntime().exec(new String[]{"cmd.exe", "/c", filePath});
        }
    } // 方法openFile结束

}
